import {
	request
} from '@/common/request.js'

export function login(query) {
	return request({
		url: `/app/login`,
		method: 'post',
		query
	})
}
export function getInfo(query) {
	return request({
		url: `/yshapp/user/userInfo/${query}`,
		method: 'post',
	})
}
// 首页福利商品
export function homeGoodsList(query) {
	return request({
		url: `/yshapp/goods/homeGoodsList`,
		method: 'get',
		query
	})
}
// 商品详情

export function goodsDetail(query) {
	return request({
		url: `/yshapp/goods/detail`,
		method: 'get',
		query
	})
}
// 福利商品列表

export function GoodsList(query) {
	return request({
		url: `/yshapp/goods/list`,
		method: 'post',
		query
	})
}
// 我的订单
export function orderList(query) {
	return request({
		url: `/yshapp/order/list`,
		method: 'get',
		query
	})
}
// 我的订单详情
export function orderDetail(query) {
	return request({
		url: `/yshapp/order/detail`,
		method: 'post',
		query
	})
}
// 社区公告列表
export function communitybulletinList(data) {
	return request({
		url: `/yshapp/communitybulletin/list`,
		method: 'post',
		data
	})
}
// 社区列表
export function communityList(data) {
	return request({
		url: `/yshapp/community/list`,
		method: 'get',
		data
	})
}
// 新增收获地址
export function deliveryAddressAdd(query) {
	return request({
		url: `/yshapp/deliveryAddress/add`,
		method: 'post',
		query
	})
}
// 删除收获地址
export function deliveryAddressDel(query) {
	return request({
		url: `/yshapp/deliveryAddress/del`,
		method: 'post',
		query
	})
}
// 修改收获地址
export function deliveryAddressUpdate(query) {
	return request({
		url: `/yshapp/deliveryAddress/update`,
		method: 'post',
		query
	})
}
// 查询收货地址列表
export function deliveryAddressList(query) {
	return request({
		url: `/yshapp/deliveryAddress/list`,
		method: 'get',
		query
	})
}
// 查询收货地址详情
export function deliveryAddressDetail(query) {
	return request({
		url: `/yshapp/deliveryAddress/detail`,
		method: 'get',
		query
	})
}
// vip套餐
export function memberInfo(query) {
	return request({
		url: `/yshapp/member/info/${query}`,
		method: 'get',
	})
}
// 创建订单
export function deliveryOrderAdd(query) {
	return request({
		url: `/yshapp/order/add`,
		method: 'get',
		query
	})
}
export function wxPay(query) {
	return request({
		url: `/app/wx/pay`,
		method: 'post',
		query
	})
}
// 小程序认证
export function register(query) {
	return request({
		url: `/yshapp/user/register`,
		method: 'post',
		query
	})
}
// 积分签到列表
export function signInPointList(query) {
	return request({
		url: `/yshapp/point/signInPointList`,
		method: 'post',
		query
	})
}
// 积分签到
export function signIn(query) {
	return request({
		url: `/yshapp/point/signIn`,
		method: 'post',
		query
	})
}
// 积分签到日历
export function monthlyPoint(query) {
	return request({
		url: `/yshapp/point/monthlyPoint`,
		method: 'post',
		query
	})
}


// 参加抽奖
export function signUp(query) {
	return request({
		url: `/yshapp/raffle/signUp`,
		method: 'post',
		query
	})
}
// 抽奖页面显示数据
export function signUpHouse(data) {
	return request({
		url: `/yshapp/raffle/signUpHouse`,
		method: 'GET',
		data
	})
}
// 开奖记录（列表）
export function rafflelist(query) {
	return request({
		url: `/yshapp/raffle/list`,
		method: 'GET',
		query
	})
}
// 开奖记录详情
export function raffledetail(query) {
	return request({
		url: `/yshapp/raffle/detail`,
		method: 'post',
		query
	})
}
// 修改用户
export function userUpdate(query) {
	return request({
		url: `/yshapp/user/update`,
		method: 'post',
		query
	})
}